package com.sz.common.core.constants;

import com.sz.common.base.exception.CommonErrorCodes;
import com.sz.common.base.exception.ErrorCode;

/**
 * Function: SysErrorCodes <br>
 * Author: Charles <br>
 * Date: 2017-01-19 19:52:00
 */
public interface SysErrorCodes extends CommonErrorCodes {

    // 用户管理 code: 120000~120999
     ErrorCode ERROR_MODEL_USER_EMAIL_EXIST = new ErrorCode(120000, "error.model.user.email.exist");
     ErrorCode ERROR_MODEL_USER_MOBILEPHONE_EXIST = new ErrorCode(120001, "error.model.user.mobilephone.exist");
     ErrorCode ERROR_MODEL_USER_OLD_PASS_NOT_MATCH = new ErrorCode(120002, "error.model.user.oldpassword.notmatch");
     ErrorCode ERROR_MODEL_USER_CODE_EXIST = new ErrorCode(120003, "error.model.user.usercode.exist");
     ErrorCode ERROR_MODEL_USER_PASSWORD_FORMAT_ERROR = new ErrorCode(120004,"error.model.user.newpassword.formaterror");
     ErrorCode ERROR_MODEL_USER_NEW_PASSWORD_MATCH_OLD_PASS = new ErrorCode(120005,"error.model.user.newpassword.match.oldpassword");

    // 组织管理 code: 121000~121999
     ErrorCode ERROR_MODEL_ORG_PARENTNODE_DRAG_TO_SUBNODE = new ErrorCode(121000,
            "error.model.org.parentnode.draged.to.subnode");
     ErrorCode ERROR_MODEL_ORG_ROOT_NO_DELETE =
            new ErrorCode(121001, "error.model.org.root.no.delete");
     ErrorCode ERROR_MODEL_ORG_HAS_SUBNODE = new ErrorCode(121002, "error.model.org.has.subnode");
     ErrorCode ERROR_MODEL_ORG_HAS_USER = new ErrorCode(121003, "error.model.org.has.user");
     ErrorCode ERROR_MODEL_ORG_HAS_ROLE = new ErrorCode(121004, "error.model.org.has.roles");
     ErrorCode ERROR_MODEL_ORG_SHIFT_DIRECT_ERR = new ErrorCode(121005, "error.model.org.shift.direct.error");
     ErrorCode ERROR_MODEL_ORG_DRAG_NAMEREPEAT_ERR = new ErrorCode(121006, "error.model.org.drag.namerepeat.error");
     ErrorCode ERROR_MODEL_USERGROUP_DRAG_NAMEREPEAT_ERR = new ErrorCode(122007, "error.model.usergroup.drag.namerepeat.error");
     ErrorCode ERROR_MODEL_ORG_LEVEL_TOODEEP = new ErrorCode(121008, "error.model.org.level.toodeep.error");

    // 角色 code: 122000~122999
     ErrorCode ERROR_MODEL_ROLE_ROLENAME_EXIST =
            new ErrorCode(122001, "error.model.role.roleName.exist");
     ErrorCode ERROR_MODEL_ROLE_ROLECODE_EXIST =
            new ErrorCode(122002, "error.model.role.roleCode.exist");
     ErrorCode ERROR_MODEL_ROLE_NOT_FOUND =
            new ErrorCode(122003, "error.model.role.not.found");
     ErrorCode ERROR_MODEL_ROLE_HAS_BEEN_DELETED =
            new ErrorCode(122004, "error.model.role.has.been.deleted");
     ErrorCode ERROR_MODEL_ROLE_ROLEPERMISSION_EXIST =
            new ErrorCode(122005, "error.model.role.permission.exist");
     ErrorCode ERROR_MODEL_ROLE_ROLENAME_NULL =
            new ErrorCode(122006, "error.model.role.roleName.null");
     ErrorCode ERROR_MODEL_ROLE_ROLECODE_NULL =
            new ErrorCode(122007, "error.model.role.roleCode.null");

    // 菜单 code: 123000~123999
     ErrorCode ERROR_MENU_USER_ROLE = new ErrorCode(123000, "error.menu.user.role");
    // 授权 code: 124000~124999
     ErrorCode ERROR_AUTH_MENU_ROOT = new ErrorCode(124000, "error.auth.menu.root");
}
